<?php
//include the functions.php
require "include/functions.php";

check_session();

?>

<html>
<head>
<title>Home Electronics - User login page</title>
<link rel="stylesheet" href="include/styles.css" type="text/css">
</head>
<body>
<div id="container" align="center">
   <div id="header">
		<div id="topmenu"><ul><?php top_menu(); ?></ul></div> 
		<div id="menu" align="right">
		<form name="form1" method="post" action="search.php">
		<tr>
		<td height="35" width="78"><a>Search Products</a></td>
		<td height="35" width="3">:</td>
		<td height="35" width="294"><input name="mysearch" type="text" id="mysearch">&nbsp;&nbsp;&nbsp;</td>
		</tr>
		</form>
		</div>
		<div id="menubar"> <!-- Menu buttons -->
  		<ul>
   		<li><a href="index.php" title="Home"><span>Home</span></a></li>
	    <li><a href="#" title="Computing"><span>Computing</span></a></li>
		<li><a href="#" title="Kitchen"><span>Kitchen</span></a></li>
		<li><a href="#" title="Bathroom"><span>Bathroom</span></a></li>
		<li><a href="#" title="Laundry"><span>Laundry</span></a></li>
		<li><a href="#" title="Furniture and Bedding"><span>Furniture & Bedding</span></a></li>
		<li><a href="contact.php" title="Contact"><span>Contact Us</span></a></li>
    	</ul>
		</div>
	</div> <!-- Header -->

	
	<div id="body" align="center">
		<div id="page">
	<?php
	print('

		<h1>Welcome To User Page, '.$_SESSION['name'].' </h1> 
		<a>User stuff goes here</a><br><br>
		
		<a>Details have been retrieved from database</a><br>
		<a>Username: '.$_SESSION['name'].'</a><br> 
		<a>Password: xxxxxxxx</a><br>  
		<a>User Level: '.$_SESSION["valid_user"].'</a><br>
		<a>Session Time: '.$_SESSION['valid_time'].'</a><br>
		
		'); // Retrieves and displayers the data from column "rights" you could use this to retreive cart or profile info
		?><script>	window.location = 'index.php';</script><? 
	?>
		
		</div>
	</div> <!--body div -->
   		
   <? footer(); ?>
</div>
</body>
</html>




